﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using vxi.chat.library;

namespace vxi.com.sync
{
    /// <summary> 
    /// 服务器发送到服务器消息基类 
    /// </summary> 
    [Serializable]
    public abstract class S2S_MessageBase : MessageBase
    {
        
    }

    [Serializable]
    public class GetData : S2S_MessageBase
    {

    }

    [Serializable]
    public class AllData : S2S_MessageBase
    {
        private IList<VxiUserBase> _userList;

        public IList<VxiUserBase> UserList
        {
            get { return _userList; }
            set { _userList = value; }
        }

        private IList<VxiChatSession> _sessionList;

        public IList<VxiChatSession> SessionList
        {
            get { return _sessionList; }
            set { _sessionList = value; }
        }
    }

    [Serializable]
    public class AddUser : S2S_MessageBase
    {
        private VxiUserBase _user;

        public VxiUserBase User
        {
            get { return _user; }
            set { _user = value; }
        }
    }

    [Serializable]
    public class DelUser : S2S_MessageBase
    {
        private VxiUserBase _user;

        public VxiUserBase User
        {
            get { return _user; }
            set { _user = value; }
        }
    }

    [Serializable]
    public class UpdateUser : S2S_MessageBase
    {
        private VxiUserBase _user;

        public VxiUserBase User
        {
            get { return _user; }
            set { _user = value; }
        }
    }


    [Serializable]
    public class AddSession : S2S_MessageBase
    {
        private VxiChatSession _session;

        public VxiChatSession Session
        {
            get { return _session; }
            set { _session = value; }
        }
    }

    [Serializable]
    public class DelSession : S2S_MessageBase
    {
        private VxiChatSession _session;

        public VxiChatSession Session
        {
            get { return _session; }
            set { _session = value; }
        }
    }

    [Serializable]
    public class UpdateSession : S2S_MessageBase
    {
        private VxiChatSession _session;

        public VxiChatSession Session
        {
            get { return _session; }
            set { _session = value; }
        }
    }
}
